<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SARibbon: SARibbonPannelItem类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="SA-logo.png"/></td>
  <td id="projectalign">
   <div id="projectname">SARibbon<span id="projectnumber">&#160;2.4.2</span>
   </div>
   <div id="projectbrief">SARibbon wiki</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('class_s_a_ribbon_pannel_item.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="class_s_a_ribbon_pannel_item-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">SARibbonPannelItem类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>是对pannel所有子窗口的抽象，参考qt的toolbar  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_s_a_ribbon_pannel_item_8h_source.html">SARibbonPannelItem.h</a>&gt;</code></p>
<div class="dynheader">
类 SARibbonPannelItem 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_s_a_ribbon_pannel_item.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:af4282b5e09c0b7ad37f1cc555a763926" id="r_af4282b5e09c0b7ad37f1cc555a763926"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af4282b5e09c0b7ad37f1cc555a763926">RowProportion</a> { <a class="el" href="#af4282b5e09c0b7ad37f1cc555a763926a945a30a994e0ae67c403424d018cf36c">None</a>
, <a class="el" href="#af4282b5e09c0b7ad37f1cc555a763926a51c698e60b498f57ac2620a2560066db">Large</a>
, <a class="el" href="#af4282b5e09c0b7ad37f1cc555a763926a81319357f999411ab803ba666260e7ee">Medium</a>
, <a class="el" href="#af4282b5e09c0b7ad37f1cc555a763926a840ba607e1a1a8dec487eb575f78c450">Small</a>
 }</td></tr>
<tr class="memdesc:af4282b5e09c0b7ad37f1cc555a763926"><td class="mdescLeft">&#160;</td><td class="mdescRight">定义了行的占比，ribbon中有large，media和small三种占比  <a href="#af4282b5e09c0b7ad37f1cc555a763926">更多...</a><br /></td></tr>
<tr class="separator:af4282b5e09c0b7ad37f1cc555a763926"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a10edb9f64be35c69061b88806e176945" id="r_a10edb9f64be35c69061b88806e176945"><td class="memItemLeft" align="right" valign="top"><a id="a10edb9f64be35c69061b88806e176945" name="a10edb9f64be35c69061b88806e176945"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SARibbonPannelItem</b> (QWidget *widget)</td></tr>
<tr class="separator:a10edb9f64be35c69061b88806e176945"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00900c546a30841830dc2dd042ef2a85" id="r_a00900c546a30841830dc2dd042ef2a85"><td class="memItemLeft" align="right" valign="top"><a id="a00900c546a30841830dc2dd042ef2a85" name="a00900c546a30841830dc2dd042ef2a85"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isEmpty</b> () const Q_DECL_OVERRIDE</td></tr>
<tr class="separator:a00900c546a30841830dc2dd042ef2a85"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a625779a0c233f785cd322705cb1a6763" id="r_a625779a0c233f785cd322705cb1a6763"><td class="memItemLeft" align="right" valign="top"><a id="a625779a0c233f785cd322705cb1a6763" name="a625779a0c233f785cd322705cb1a6763"></a>
short&#160;</td><td class="memItemRight" valign="bottom"><b>rowIndex</b></td></tr>
<tr class="memdesc:a625779a0c233f785cd322705cb1a6763"><td class="mdescLeft">&#160;</td><td class="mdescRight">记录当前item属于第几行，hide模式下为-1 <br /></td></tr>
<tr class="separator:a625779a0c233f785cd322705cb1a6763"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7bc9bb1b566838f298ca92e2cad549a" id="r_af7bc9bb1b566838f298ca92e2cad549a"><td class="memItemLeft" align="right" valign="top"><a id="af7bc9bb1b566838f298ca92e2cad549a" name="af7bc9bb1b566838f298ca92e2cad549a"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>columnIndex</b></td></tr>
<tr class="memdesc:af7bc9bb1b566838f298ca92e2cad549a"><td class="mdescLeft">&#160;</td><td class="mdescRight">记录当前item属于第几列，hide模式下为-1 <br /></td></tr>
<tr class="separator:af7bc9bb1b566838f298ca92e2cad549a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac54ed5fe77d3e36a96309fc0c6566663" id="r_ac54ed5fe77d3e36a96309fc0c6566663"><td class="memItemLeft" align="right" valign="top"><a id="ac54ed5fe77d3e36a96309fc0c6566663" name="ac54ed5fe77d3e36a96309fc0c6566663"></a>
QRect&#160;</td><td class="memItemRight" valign="bottom"><b>itemWillSetGeometry</b></td></tr>
<tr class="memdesc:ac54ed5fe77d3e36a96309fc0c6566663"><td class="mdescLeft">&#160;</td><td class="mdescRight">在调用SARibbonPannelLayout::updateGeomArray会更新这个此处，实际设置的时候会QWidgetItem::setGeometry设置Geometry <br /></td></tr>
<tr class="separator:ac54ed5fe77d3e36a96309fc0c6566663"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30654ff1bdeb65481a88c81fa703e152" id="r_a30654ff1bdeb65481a88c81fa703e152"><td class="memItemLeft" align="right" valign="top"><a id="a30654ff1bdeb65481a88c81fa703e152" name="a30654ff1bdeb65481a88c81fa703e152"></a>
QAction *&#160;</td><td class="memItemRight" valign="bottom"><b>action</b></td></tr>
<tr class="separator:a30654ff1bdeb65481a88c81fa703e152"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a606fd91113fced39493e2c529d46657b" id="r_a606fd91113fced39493e2c529d46657b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a606fd91113fced39493e2c529d46657b">customWidget</a></td></tr>
<tr class="memdesc:a606fd91113fced39493e2c529d46657b"><td class="mdescLeft">&#160;</td><td class="mdescRight">&lt; 记录action，参考QToolBarLayoutItem  <br /></td></tr>
<tr class="separator:a606fd91113fced39493e2c529d46657b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd998d37d693ee6f9ccf3a4b3e38db07" id="r_abd998d37d693ee6f9ccf3a4b3e38db07"><td class="memItemLeft" align="right" valign="top"><a id="abd998d37d693ee6f9ccf3a4b3e38db07" name="abd998d37d693ee6f9ccf3a4b3e38db07"></a>
<a class="el" href="#af4282b5e09c0b7ad37f1cc555a763926">SARibbonPannelItem::RowProportion</a>&#160;</td><td class="memItemRight" valign="bottom"><b>rowProportion</b></td></tr>
<tr class="memdesc:abd998d37d693ee6f9ccf3a4b3e38db07"><td class="mdescLeft">&#160;</td><td class="mdescRight">行的占比，ribbon中有large，media和small三种占比,见<a class="el" href="#af4282b5e09c0b7ad37f1cc555a763926">RowProportion</a> <br /></td></tr>
<tr class="separator:abd998d37d693ee6f9ccf3a4b3e38db07"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>是对pannel所有子窗口的抽象，参考qt的toolbar </p>
<p>参考qt的toolbar，pannel所有子窗口内容都通过QAction进行抽象，包括gallery这些窗口，也是通过QAction进行抽象 QAction最终会转换为SARibbonPannelItem，每个SARibbonPannelItem都含有一个widget，SARibbonPannel的布局 就基于SARibbonPannelItem</p>
<p>无窗口的action会在内部生成一个SARibbonToolButton， </p>
</div><h2 class="groupheader">成员枚举类型说明</h2>
<a id="af4282b5e09c0b7ad37f1cc555a763926" name="af4282b5e09c0b7ad37f1cc555a763926"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af4282b5e09c0b7ad37f1cc555a763926">&#9670;&#160;</a></span>RowProportion</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="#af4282b5e09c0b7ad37f1cc555a763926">SARibbonPannelItem::RowProportion</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>定义了行的占比，ribbon中有large，media和small三种占比 </p>
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="af4282b5e09c0b7ad37f1cc555a763926a945a30a994e0ae67c403424d018cf36c" name="af4282b5e09c0b7ad37f1cc555a763926a945a30a994e0ae67c403424d018cf36c"></a>None&#160;</td><td class="fielddoc"><p>为定义占比，这时候将会依据expandingDirections来判断，如果能有Qt::Vertical，就等同于Large，否则就是Small </p>
</td></tr>
<tr><td class="fieldname"><a id="af4282b5e09c0b7ad37f1cc555a763926a51c698e60b498f57ac2620a2560066db" name="af4282b5e09c0b7ad37f1cc555a763926a51c698e60b498f57ac2620a2560066db"></a>Large&#160;</td><td class="fielddoc"><p>大占比，一个widget的高度会充满整个pannel </p>
</td></tr>
<tr><td class="fieldname"><a id="af4282b5e09c0b7ad37f1cc555a763926a81319357f999411ab803ba666260e7ee" name="af4282b5e09c0b7ad37f1cc555a763926a81319357f999411ab803ba666260e7ee"></a>Medium&#160;</td><td class="fielddoc"><p>中占比，在SARibbonPannel::pannelLayoutMode 为 <a class="el" href="class_s_a_ribbon_pannel.html#a9da35ca039ab4045209d5614e4566219ac4aec84893752a28762a45d151fc68db">SARibbonPannel::ThreeRowMode</a> 时才会起作用，且要同一列里两个都是Medium时，会在三行中占据两行 </p>
</td></tr>
<tr><td class="fieldname"><a id="af4282b5e09c0b7ad37f1cc555a763926a840ba607e1a1a8dec487eb575f78c450" name="af4282b5e09c0b7ad37f1cc555a763926a840ba607e1a1a8dec487eb575f78c450"></a>Small&#160;</td><td class="fielddoc"><p>小占比，占SARibbonPannel的一行，Medium在不满足条件时也会变为Small，但不会变为Large </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a606fd91113fced39493e2c529d46657b" name="a606fd91113fced39493e2c529d46657b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a606fd91113fced39493e2c529d46657b">&#9670;&#160;</a></span>customWidget</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonPannelItem::customWidget</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>&lt; 记录action，参考QToolBarLayoutItem </p>
<p>对于没有窗口的action，实际也会有一个SARibbonToolButton，在销毁时要delete掉 </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<a class="el" href="_s_a_ribbon_pannel_item_8h_source.html">SARibbonPannelItem.h</a></li>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<b>SARibbonPannelItem.cpp</b></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_s_a_ribbon_pannel_item.html">SARibbonPannelItem</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
